package com.renjibo.childred.databases;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import org.xutils.DbManager;
import org.xutils.common.util.KeyValue;
import org.xutils.db.Selector;
import org.xutils.db.sqlite.SqlInfo;
import org.xutils.db.sqlite.WhereBuilder;
import org.xutils.db.table.DbModel;
import org.xutils.db.table.TableEntity;
import org.xutils.ex.DbException;

import java.io.IOException;
import java.util.List;

/**
 * 任继波
 * Created by Administrator on 2017/2/26.
 */

public class MySqlite extends SQLiteOpenHelper{

    public MySqlite(Context context) {
        super(context, "user.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql="create table groud(gridId integer primary key autoincrement,groupChex integer,goneView integer,name vafrchar(20),countMonery double(20))";
        db.execSQL(sql);
        String sqlOne="create table child(id integer primary key autoincrement,childChe integer,imageUrl varchar(20),name varchar(20),price double(20),num integer,gridId integer)";
        db.execSQL(sqlOne);
        }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
